﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("选择要计算的图形");
            string didi = Console.ReadLine();
            if (didi=="圆形")
            {
                Console.WriteLine("输入半径");
                double banjing =double.Parse( Console.ReadLine());
                yuan yuan = new yuan();
                yuan.GetArea(banjing);

            }else if (didi == "正方形")
            {
                Console.WriteLine("输入边长");
                double bianchang = double.Parse(Console.ReadLine());
                zheng zheng = new zheng();
                zheng.GetArea(bianchang);

            }
        }
    }
}
